<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>内容列表</title>
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
</head>

<body>
<style type="text/css">
.seoption{padding-top:10px; text-align:center;}
.seoption select{border:solid 1px #ccc; border-radius:3px; height:30px; line-height:24px; border-right:none;}
button.okglian{display:block; clear:both; width:70px; margin:0px auto; margin-top:6px; background:none; background-color:#ff5454; color:#fff; border:none; border-radius:5px; line-height:22px; cursor:pointer;}
.pages a{display: block; width: 80px; height: 30px; text-align: center; line-height: 30px; padding: 0px; padding-bottom: 0px; background-color: #00a65a;}
b.extena{color: #ff5454; font-weight: normal; font-size: 12px; margin-left: 3px;}
</style>
<!-- 预览窗口开始 -->
<div class="previewbg" style="display:none;">
	<input style="margin-top:92px; width:375px;"></input>
	<iframe id="previewwidnow" src="" frameborder="0" scrolling="auto" style="margin-top:0px;"></iframe>
</div>
<!-- 预览窗口结束 -->
<div class="main-frame">
	<div class="position">华人码 > 资源内容列表</div>
	<div class="table-list">
	 <table width="100%" border="1" cellspacing="0" cellpadding="0" class="indextable">
		    <tr class="th-bg">
		      <th width="4%">序号</th>
		      <th width="30%">内容标题</th>
		      <th width="22%">版块</th>
		      <th width="9%">创建时间</th>
              <th width="6%">状态</th>
              <th width="8%">发布人</th>
		      <th width="10%" style="text-align:right;">操作</th>
	        </tr>
	        <volist name='plate_list' id='v'>
		    <tr class="tr-line">
		      <td>{$v.id}</td>
		      <td><a class='preview' path='{:U('Home/Article/index',array('id'=>$v['id']))}'>{$v.title} {:W('Menutype/getexten',array('img' => $v['pic'], 'str' => $v['extendattr']))}</a></td>
		      <td>{$v['plate_info']}</td>
		      <td style="font-size:12px;">{$v.u_date}</td>
              <td><if condition="$v['state'] eq 1"><span class="topen" title="开启"></span><else /><span class="tclose" title="关闭"></span></if></td>
              <td>{$v.issuer}</td>
		      <td style='text-align:right;'>
		      <a class='preview' path='{:U('Home/Plate/article',array('arid'=>$v['id']))}'>预览</a>
		      <if condition="($Thinkphp.session.userinfo.id eq $v['userid']) or ($Thinkphp.session.userinfo.type eq 1)">  /  <a href="{:U('Pcontent/content_add',array('id' => $v['plate_id'], 'edit_id' => $v['id'], 'edit' => 'true'))}">编辑</a> / <a class="resdel" refurl="{:U('Type/delete',array('id'=>$v['id'],'table'=>'platecontent'))}">删除</a></if>
			  </td>
	        </tr>
	        </volist>
      </table>
    </div>
    <if condition="$page neq 1">
	    <if condition="$Think.get.id neq ''">
			<style type="text/css">
				.pages a{margin-left: 12px; margin-top: 10px;}
				.pages div{display: block; width: 500px; margin: 0px auto; margin-top: -42px;}
			</style>
	    	<div class="page pages" style="margin-top:10px;"><a href="{:U('content_add',array('id'=>I('get.id')))}">添加 </a>	{$page}</div>
	    <else />
	    	<div class="page">{$page}</div>
	    </if>
    </if>
</div>
<script type="text/javascript">
	$(function(){
		$("a.resdel").each(function(index, element) {
			var t = $(this);
			t.click(function(){
				var r=confirm("想好！确定要删除吗？");
				if (r==true){
					var refurl = $(this).attr('refurl');
					location.href = refurl;
				}else{
					return false;
				}
			})
		});
	})
</script>
<script type="text/javascript">
$(function(){


})
</script>
</body>
</html>
